package entity;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Account entity. @author MyEclipse Persistence Tools
 */

public class Account implements java.io.Serializable {

	// Fields

	private Integer accountId;
	private String accountName;
	private String password;
	private String tel;
	private String email;
	private Timestamp firstLoginTime;
	private Timestamp lastLoginTime;
	private String lastLoginIp;
	private String schoolName;
	private String major;
	private String instituteName;
	private String accountName_1;
	private Set commentses = new HashSet(0);
	private Set participates = new HashSet(0);
	private Set follows = new HashSet(0);

	// Constructors

	/** default constructor */
	public Account() {
	}

	/** minimal constructor */
	public Account(String password, String accountName_1) {
		this.password = password;
		this.accountName_1 = accountName_1;
	}

	/** full constructor */
	public Account(String accountName, String password, String tel,
			String email, Timestamp firstLoginTime, Timestamp lastLoginTime,
			String lastLoginIp, String schoolName, String major,
			String instituteName, String accountName_1, Set commentses,
			Set participates, Set follows) {
		this.accountName = accountName;
		this.password = password;
		this.tel = tel;
		this.email = email;
		this.firstLoginTime = firstLoginTime;
		this.lastLoginTime = lastLoginTime;
		this.lastLoginIp = lastLoginIp;
		this.schoolName = schoolName;
		this.major = major;
		this.instituteName = instituteName;
		this.accountName_1 = accountName_1;
		this.commentses = commentses;
		this.participates = participates;
		this.follows = follows;
	}

	// Property accessors

	public Integer getAccountId() {
		return this.accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

	public String getAccountName() {
		return this.accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Timestamp getFirstLoginTime() {
		return this.firstLoginTime;
	}

	public void setFirstLoginTime(Timestamp firstLoginTime) {
		this.firstLoginTime = firstLoginTime;
	}

	public Timestamp getLastLoginTime() {
		return this.lastLoginTime;
	}

	public void setLastLoginTime(Timestamp lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLastLoginIp() {
		return this.lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public String getSchoolName() {
		return this.schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public String getMajor() {
		return this.major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public String getInstituteName() {
		return this.instituteName;
	}

	public void setInstituteName(String instituteName) {
		this.instituteName = instituteName;
	}

	public String getAccountName_1() {
		return this.accountName_1;
	}

	public void setAccountName_1(String accountName_1) {
		this.accountName_1 = accountName_1;
	}

	public Set getCommentses() {
		return this.commentses;
	}

	public void setCommentses(Set commentses) {
		this.commentses = commentses;
	}

	public Set getParticipates() {
		return this.participates;
	}

	public void setParticipates(Set participates) {
		this.participates = participates;
	}

	public Set getFollows() {
		return this.follows;
	}

	public void setFollows(Set follows) {
		this.follows = follows;
	}

}